package com.ruoyi.map.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyl.h5.domain.vo.RecentlyBuyCVo;
import com.cyl.manager.oms.domain.entity.OrderItem;
import com.cyl.manager.pms.domain.query.BrandQuery;
import com.ruoyi.map.domain.PmsProduct;
import com.ruoyi.map.dto.PmsProductDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author sangsijing
 * @since 2025/5/8 16:35
 */
public interface PmsProductMapper extends BaseMapper<PmsProduct> {


    List<PmsProduct> getList();

    List<PmsProductDTO> promotionList();

    PmsProductDTO productDetails(@Param("id")Long id);

    List<PmsProductDTO> getRecommendList(PmsProductDTO pmsProduct);


    List<PmsProductDTO> productSearch(PmsProductDTO query);


    List<PmsProductDTO> recommend();

    List<PmsProductDTO> brandProductList(PmsProductDTO query);

    List<RecentlyBuyCVo> recentlys(OrderItem query);
}
